package com.durian.base.rxhttp.ssl

import java.security.cert.X509Certificate
import javax.net.ssl.X509TrustManager

/**
 * 说明：X509TrustManagerImpl
 * <p/>
 * 作者：Fanly
 * <p/>
 * 类型：Class
 * <p/>
 * 时间：2020/04/24 11:26
 * <p/>
 * 版本：version 1.0
 */
class X509TrustManagerImpl : X509TrustManager {
    override fun checkClientTrusted(chain: Array<out X509Certificate>?, authType: String?) {
    }

    override fun checkServerTrusted(chain: Array<out X509Certificate>?, authType: String?) {
    }

    override fun getAcceptedIssuers(): Array<X509Certificate> {
        return emptyArray()
    }

}